package com.woniuxy.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;
import java.util.Date;

@Data
public class CarMaintenanceDto {
    @ExcelIgnore
    private Integer id;
    @ExcelProperty(value="车牌号",index = 0)
    private String carNumber;   //车牌号
    @ExcelProperty(value="车架号",index = 1)
    private String frameNumber; //车架号
   @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
   @DateTimeFormat("yyyy-MM-dd")
    @ExcelProperty(value="保养日期",index = 2)
    private Date maintenanceDate;//保养日期
    @ExcelProperty(value="保养等级",index = 3)
    private Integer maintenanceGrade;//保养等级 1,2,3级
    @ExcelProperty(value="保养费用",index = 4)
    private Integer maintenanceExpense;//保养费用
    @ExcelProperty(value="保养周期（时间）",index = 5)
    private String maintenancePeriodDate;//保养周期（时间）
    @ExcelProperty(value="保养周期（公里）",index = 6)
    private String maintenancePeriodKm;//保养周期（公里）
    @ExcelProperty(value="状态",index = 7)
    private Integer maintenanceState;//状态 2:保养中 1:已保养 0:未保养
    @ExcelProperty(value="汽车外键")
    private Integer carId;//car外键
}
